package com.ironman.h6b1gw.jxls.model;

import cn.hutool.core.util.RandomUtil;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Employee {

    private String name;

    private int age;

    public static List<Employee> employees() {
        List<Employee> employees = new ArrayList<>();
        for (int j = 1; j < 11; j++) {
            Employee employee = new Employee();
            employee.setName("部门员工" + j);
            employee.setAge(RandomUtil.randomInt(20, 39));
            employees.add(employee);
        }
        return employees;
    }
}
